/**
 * ...
 * >author		João Vítor de Souza
 */

package com.cupcakeengine.core 
{

	public class Reusable 
	{
		// ___________________________________________________________________ CONSTANTS		
		
		// ___________________________________________________________________ CLASS PROPERTIES
		
		private var _data					: *;
		private var _isFree					: Boolean;		
		
		// ___________________________________________________________________ INSTANCE PROPERTIES
		
		// ___________________________________________________________________ GETTERS AND SETTERS
		
		public function get data():* { return _data; }
		
		public function set data(value:*):void 
		{
			_data = value;
		}
		
		public function get isFree():Boolean { return _isFree; }
		
		public function set isFree(value:Boolean):void 
		{
			_isFree = value;
		}
		
		// ___________________________________________________________________ CONSTRUCTOR
		
		public function Reusable(data:*, isFree:Boolean = true)
		{
			_data = data;
			_isFree = isFree;
		}
		
		// ___________________________________________________________________ PUBLIC METHODS
		
		// ___________________________________________________________________ PRIVATE METHODS
		
		// ___________________________________________________________________ EVENTS
	}
}

